/*
 * gpio.h
 *
 *  Created on: May 29, 2021
 *      Author: tau
 */

#ifndef DRV_GPIO_H_
#define DRV_GPIO_H_
/*
 *   PORT NAME[PIN] = GPIO [id]
 *   PORTA[ 0]      = gpio[ 0x00]
 *   PORTA[ 1]      = gpio[ 0x01]
 *                  :
 *   PORTA[31]      = gpio[ 0x1F]
 *   PORTB[ 0]      = gpio[ 0x20]
 *                  :
 *   PORTB[31]      = gpio[ 0x3F]
 *                  :
 *                  :
 *                  :
 *   PORTI[ 0]      = gpio[ 0xC0]
 *                  :
 *                  :
 *   PORTI[31]      = gpio[ 0xDF]
 */



class gpio {
private:
	int pinNum;
public:
	void write(int val);
	int read();
	gpio(int num,bool isOut) ;
	virtual ~gpio();
};

#endif /* DRV_GPIO_H_ */
